package com.yc.baihe.beans;

import java.io.Serializable;

public class Levels implements Serializable{
	private static final long serialVersionUID = 1L;
	private int buid;//用户账号
	private int integral;//用户积分
	private String timebefor;//上一次登录时间
	private String timenow;//当前登录时间
	
	private String temp1;//备用
	private String temp2;
	
	@Override
	public String toString() {
		return "Levels [buid=" + buid + ", integral=" + integral + ", timebefor="
				+ timebefor + ", timenow=" + timenow + ", temp1=" + temp1
				+ ", temp2=" + temp2 + "]";
	}

	public int getBuid() {
		return buid;
	}

	public void setBuid(int buid) {
		this.buid = buid;
	}

	public int getIntegral() {
		return integral;
	}

	public void setIntegral(int integral) {
		this.integral = integral;
	}

	public String getTimebefor() {
		return timebefor;
	}

	public void setTimebefor(String timebefor) {
		this.timebefor = timebefor;
	}

	public String getTimenow() {
		return timenow;
	}

	public void setTimenow(String timenow) {
		this.timenow = timenow;
	}

	public String getTemp1() {
		return temp1;
	}

	public void setTemp1(String temp1) {
		this.temp1 = temp1;
	}

	public String getTemp2() {
		return temp2;
	}

	public void setTemp2(String temp2) {
		this.temp2 = temp2;
	}

	public Levels(int buid, int integral, String timebefor, String timenow,
			String temp1, String temp2) {
		super();
		this.buid = buid;
		this.integral = integral;
		this.timebefor = timebefor;
		this.timenow = timenow;
		this.temp1 = temp1;
		this.temp2 = temp2;
	}

	public Levels() {
		super();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + integral;
		result = prime * result + ((temp1 == null) ? 0 : temp1.hashCode());
		result = prime * result + ((temp2 == null) ? 0 : temp2.hashCode());
		result = prime * result
				+ ((timebefor == null) ? 0 : timebefor.hashCode());
		result = prime * result + ((timenow == null) ? 0 : timenow.hashCode());
		result = prime * result + buid;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Levels other = (Levels) obj;
		if (integral != other.integral)
			return false;
		if (temp1 == null) {
			if (other.temp1 != null)
				return false;
		} else if (!temp1.equals(other.temp1))
			return false;
		if (temp2 == null) {
			if (other.temp2 != null)
				return false;
		} else if (!temp2.equals(other.temp2))
			return false;
		if (timebefor == null) {
			if (other.timebefor != null)
				return false;
		} else if (!timebefor.equals(other.timebefor))
			return false;
		if (timenow == null) {
			if (other.timenow != null)
				return false;
		} else if (!timenow.equals(other.timenow))
			return false;
		if (buid != other.buid)
			return false;
		return true;
	}
	
}
